const app = getApp();
import {
  assignDetail
} from "../../../server/api";
Page({
  data: {
    oss_url: app.globalData.oss_url,
    list: []
  },
  onLoad: function (options) {
   this.getGifts()
  },
  getGifts(){
    let data={
      deptId:124
      // app.globalData.user_info.userDeptId
    }
    assignDetail(data).then(res=>{
      if(res.code==0){
        this.setData({
          list:res.data.list[0]
        })
      }
    })
  }
})